Key switch scanning and encoding system

ABSTRACT

In this key switch scanning and encoding system, open (OFF) switches may be scanned at a faster rate than closed (ON) switches, and a coded signal is produced indicative of each closed switch. The switches are arranged in a matrix of M groups each connected to N common output lines. The switch groups are enabled sequentially, one at a time. As each group of switches is enabled, the N output lines sequentially are gated to a coding matrix. If the gated line is associated with a closed switch in the enabled group, an output code is produced by the code matrix, which, together with a signal designating the enabled group, uniquely identifies the closed switch. Scanning is delayed briefly to permit utilization of the encoded output. If an open (OFF) switch is scanned, no code is produced by the code matrix. This no-code condition immediately causes the next switch matrix output line to be gated to the code matrix. In this way, open switches are &#39;&#39;&#39;&#39;skipped over&#39;&#39;&#39;&#39; or scanned at a rapid rate. The system is particularly useful in an electronic musical instrument.

United States Patent Griffith et a1.

1451 Aug. 19, 1975 1 KEY SWITCH SCANNING AND ENCODING SYSTEM Primary ExaminerStephen J. Tomsky [75] Inventors: Glen R. Griffith, Westminster; Ralph Deutsch, Sherman Oaks, both g n 1 er of Calif.

57 AB TRA [73'] Ass1gnee: Nlppon Gakkl Se1zo Kabushlkl L 1 S CT K i h Hamamatsu, japan In this key switch scanning and encoding system, open 2 F, 4 9 x (OFF) switches may be scanned at a faster rate than [2 I closed (ON) switches, and a coded signal is produced [21] A 1 M 386,968 indicative of each closed switch. The switches are arranged in a matrix of M groups each connected to N common output lines. The switch groups are enabled [5 2] US. Cl 84/1.0 l; 84/1.03, 340/166 sequentially one at a time. AS each group of Switches I Clisyenabled, the N Output li sequentially are gated to Fleld of Search I 15, a Coding matrixthe gated line i associated a 340/166 R closed switch in the enabled group, an output code is v produced by the code matrix, which, together with a [56'] References C'ted signal designating the enabled group, uniquely identi- NITED TA PATENTS fies the closed switch. Scanning is delayed briefly to 3594.487 7/1971 Jones, Jr. 84/l.01 X permit utilization of the encoded output. If an open 3.610.799 /1971 Watson 1 84/101 (OFF) switch is scanned, no code is produced by the 3.697.661 10/1972 Deutsch 84/1.()1 d matrix This r g-code condition immediately 3,700,781 10/1972 Causes th t it h t i tp li t b g t d 22 7/197: to the code matrix. In this way, open switches are 8/197 P I skipped over or scanned at a rapid rate. The system 3,760,358 9/1973 1511 et a1. 84 1111 l I l 3.7893719 2/1974 Mamet v 84/103 X is partlcularly useful 1n an eectromc mus1ca mstru- 3.794747 2/1974 Ohayashi 114 1111 3.828.643 8/1974 Morey. 84/115 3,842,184 10/1974 Kniepkamp et a1 84/].01 4 3 D'awmg F'gures I62 LWI'ICH N LINES l-INE N LINES MIITRIX SELECT MRTRIX N) i C GATES ONIQILICTED (NxQ) II- ,2

ONE or M 014: o: N .siuzcrin sijzc'rgp q LINE i 1 [3 N N-sms: sun-"r our 1 I RGGIBTER I 27 sHIFT $ELECT I 23 1 cameras? I f I I No-coo: l I DETKCT COUNT 1 25 m I l 28 c\.oc\ i L ilfiffi] TIME DELAY 5/ l V V F1951 UTILIZATION COND UTILIZATION THIRD UTILIZATION MEANS MEANS MIANS (ATTACK/DELAY) (STOP sELEc'noN) (Non-E Giuum'lm) PATENTEBAUG-I 9|975 3, 8 99 951 31am 1 [I 3 l rc. 1.

l6 .5WITCH N I INEs I INE N I INEs 2 CODE MAT? IX SELECT MATRIX N) GATES ONE SELECTED NXQ) Z2 oNE or: M ONE OF N SELECTED s c Q LINES i N-sTAGE SHIFT OUT I ,3 l EEeIs-I-EE I GROUP 27/ SHIFT I sELEcT 1 23 couNTER I I I l-smess) NO-CODE q DETECT czouN'r I i E 4 I 25 I 26 I 28 l CLOCK] L i l i Lij 5U IQ TIME DELAY I Fnzs'r UTILIZATION sEcoND [UTILIZATION THIRD UTILIZATION MEANS MEANs MEANS (ATTACK/DELAY) STOP sELEcTIoN) (NOTE GENERATION) KEY SWITCH SCANNING AND ENCODING SYSTEM BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key switch scanning and encoding system useful in an electronic musical instrument.

2. Description of the Prior Art In an electronic keyboard musical instrument such as an electronic organ or piano, a significant problem relates to interconnection of the keyboard switches and the tone generation electronics. Typically an electronic organ has several manual keyboards, a pedal keyboard and a bank of stop selection switches. If separate wires connect each keyboard and stop switch to the electronics, the result is a maze of wiring which is costly to assemble and difficult to service. Simplication is desired.

One approach is to use time division multiplexing wherein a unique time slot is associated with each keyboard switch. The presence or absence of a pulse in that time slot indicates whether the corresponding key has been depressed. The advantage is that only a single multiplex line need interconnect the keyboards and the instrument electronics. However, there are two shortcomings. First, the time to scan all switches is fixed, since a unique time slot is made available to each switch whether open or closed. As a result, there may be an undesirable time lapse between the depression or release of a key and detection of this new condition. For example, if closure of a certain switch occurs just after that switch was scanned, an entire fixed length scanning cycle will pass before the condition is detected, even if no other switch is closed. Secondly, utilization of the multiplexed signal requires separate decoding circuitry in time lock with the encoder, thereby complicating the requisite circuitry.

A time division multiplex note selection system is shown by Watson in the US. Pat. No. 3,610,799. There, the keyboard switches are organized in an array with the twelve note switches in each octave of each manual or pedal keyboard arranged in a separate column associated with that octave and keyboard. All row outputs of the array are combined onto a single multiplex signal line.

The entire array is scanned at a fixed clock rate. Thus during the first twelve clock periods the 12 switches associated with the highest octave of one manual are scanned. Next the twelve switches associated with the second octave of the same manual are scanned, and so forth. With this sequential scanning arrangement, the multiplexed waveform present on the common output line will comprise pulses in time slots corresponding to the notes selected on the keyboard. The total time taken to scan the keyboard array. corresponding to the length of the multiplexed waveform, is Kt, where K is the number of switches in the array and t is the fixed clock period.

To utilize the multiplex signal requires decoder circuitry in time lock with the scanning clock. In the instrument described by Watson. musical tones are generated by repetitive readout of a musical waveshape stored in memory. The phase angle between successive memory sample points establishes the note fundamental frequency. Watson uses the decoded multiplex signal to control this phase angle, and hence to establish the note produced by the instrument. Decoder circuitry derives a phase-angle-controlling signal by comparing the time of occurrence of each pulse on the multiplex line with the contents of a clock-advanced keyboard counter also used to govern scanning of the switching array.

Another time division multiplexing technique is disclosed by Klann in the US. Pat. No. 3,614,287 in conjunction with intermanual coupling. By pulse controlled sequential connection of manual coupling and note selection switches, economy of wiring is achieved while enabling the keys on one keyboard to actuate a coupled voice on the same or a different manual.

The commutation of separate waveform generator outputs onto a common line for processing by a single waveform shaper and sound system is disclosed in the US. Pat. No. 2,989,885 to Pearson. There, delay line commutation, at a rate which is high in comparison to the frequency of the generated tones, is used to mix the outputs of key-switch selected waveform generators onto a common line. This technique permits the use of common timbre-determining circuits but requires a separate line from each waveform generator to the associated keyboard switch.

An object of the present invention is to provide a system for keyboard encoding, useful in an electronic musical instrument, which does not require a fixed scan rate independent of how many switches are selected. Open or OFF switches are scanned at a higher rate than switches which are ON. Economy in scanning rate is achieved, so that each newly closed or released switch is detected without significant delay. Encoding signals are derived, indicative of each selected key. The encoded signals are provided via a few lines for direct utilization by electronic tone generation or other circuitry. Economy of wiring is achieved without the limitation of fixed time scanning and without the requirement for time lock decoding at the point of utilization.

SUMMARY OF THE INVENTION In accordance with the present invention there is provided a system for asynchronously scanning and encoding a plurality of key switches. The switches are arranged in a matrix of M groups each connected to N common output lines. A group select counter sequential ly enables each of the groups, so that closed switches in the enabled group provide outputs along the" associated ones of the N output lines. These N out put lines are scanned at a rapid rate until a line associated with a closed switch is detected. An encoded signal identifying that line is produced by a code matrix. This encoded signal, together with an output from the group select counter, uniquely identifies the selected switch. After a delay time sufficient to permit utilization of the encoded key switch signal, line scanning continues. The group select counter is advanced each time all N output lines have been scanned, thereby enabling scanning of the next group of switches. In this manner the switch matrix is monitored completely and continuously.

Scanning of the matrix output lines is accomplished by line scan logic including an N-stage recirculating shift register and N line select gates. Each gate connects an associated output line to the code matrix when enabled by a respective one of the shift register stages. If the line gated to the code matrix is associated with an open (OFF) switch, the code matrix produces no coded output. Detection of this no-code condition causes the shift register to advance at a rapid rate. In this manner, minimum time is spent in scanning nonselected switches. 4

When a line associated with a closed (ON) switch is gated to the code matrix, an encoded output is produced. The shift register remains set for a brief dwell period sufficient to permit utilization of the switchidentifying code. Thereafter, an answerback or OK signal, provided from the utilization means or by a delay circuit, causes the shift register to advance the next state, thereby gating the next line to the code matrix and continuing the scanning operation.

The scanning rate is not fixed. A short time 1,, is taken to skip over non-selected keys, while a longer time I is permitted for encoding and utilization of selected keys. Thus if only k switches are closed (ON), the time T to scan the selected switches is T, =kt, and the time T to skip over the non-selected switches is T (K I k)! where K is the total number of switches in the array. The time saving At, as compared with the time to scanthe entire array of keyboard switches at a fixed rate I =1, (required in a time division multiplex system) is given by 8) I This time saving is significant, particularly in an instrument having many manual and pedal keyboards, stops and controls.

BRIEF DESCRIPTION OF THE DRAWINGS A detailed description of the invention will be made with reference to the accompanying drawings, wherein like numerals designate corresponding parts in the several FIGURES.

FIG. 1 is an electrical block diagram of a key switch scanning and encoding system in accordance with the present invention.

FIGS. 2A and 2B together comprise an electrical schematic diagram of an illustrative circuitry for implementing the system of FIG. 1.

DESCRIPTION OF THE PREFERRED EMBODIMENT The following detailed description is of the best presently contemplated mode of carrying out the invention. This description is not to be taken in a limiting sense, but is made merely for the purpose of illustrating the general principles of the invention since the scope of the invention best is defined by the appended claims.

In the key coding system 10 of FIG. 1, the switches to be encoded are arranged in a matrix 11 of M groups each containing up to N switches. The switches are associated with N output lines 12 so that when one of the M groups is enabled by a group select counter 13, an output is provided only on those output lines 12 associated with closed (ON) switches in the enabled group.

The output lines 12 from the switch matrix 11 are scanned sequentially by line scan logic I4 cooperating with N line select gates 15. In sequence. each line 12 is connected via a buss 16 to a code matrix 17. If the line 12 gated to the code matrix 17 is associated with a closed switch in the enabled group in the matrix 11, a code appears on a buss l8 designating the gated line 12. This code, in conjunction with an output from the group select counter 13 on a buss I9 indicative of the enabled group. together uniquely identify the closed switch in the matrix 11. The encoded key data is supplied to appropriate utilization means 20-22.

If the line gated to the code matrix 17 is associated with a switch which is open (OFF), the code matrix 17 will provide no output code on the buss 18. This nocode condition causes the line scan logic 14 and gates 15 immediately to connect the next one of the N lines 12 to the code matrix 17. To that end, a no-code detection circuit 23 senses the absence of a coded signal on the buss l8 and accordingly provides a signal via an OR gate 24 to enable an AND gate 25. A clock pulse supplied from a clock 26 via the enabled gate 25 causes a recirculating N-stage shift register 27 to advance (shift) one position. This enables the line select gates 15 to gate the next successive matrix output line 12 to the code matrix 17. Scanning of non-selected key switches progresses at a rapid rate.

The N-stage shift register 27 contains a single binary one bit. As each successive stage receives this binary one, a corresponding line select gate 15 is enabled. When the shift register 27 recirculates, a pulse is supplied via a line 28 to the count input of the group select counter 13. This increments the counter 13 so as to enable the next group of switches in the matrix 11. Scanning continues as the N lines 12, now associated with the switches in the newly selected group, are gated one-by-one to the code matrix 17. The group select counter 13 is of modulo M, so that all switch groups in the matrix 11 will be sequentially, repetitively enabled.

Each time a line 12 associated with a closed (ON) switch is gated to the code matrix 17, a coded output is produced on the buss 18. As a result, no output is produced by the no-code detector, causing the shift register 27 to dwell in its current state. Scanning is suspended to permit utilization of the encoded signal by the means 20-22. Scanning continues when an answerback or 01(" signal is provided via a line 30 to the OR gate 24. Receipt of this OK signal gates another clock pulse to the shift register 27 causing the next matrix output line 12 to be scanned. The answerback or OK" signal may be provided by a delay circuit 31 a fixed time after occurrence of the coded output on the buss 18. Alternatively, the utilization means 21, 22 may provide answerback signals after the encoded key information has been utilized.

Exemplary circuitry for implementing the key coding system 10 is shown in FIGS. 2A and 28. Referring thereto, the switch matrix 11 contains a plurality of switches 35-1, 35-2,....35-i and a multiple position switch 35-j connected in an M by N array. Each position of the switch 35-j is considered a separate switch in the matrix 11. An electrical isolation diode 36 is associated with each switch 35. Typically, certain switches 35, used for note selection. are actuated by keyboard or pedal keys. Other switches 35 may be used for stop selection, to control attack and decay, or for other functions in an electronic musical instrument.

In the embodiment of FIG. 2, an M-stage recirculating shift register 13 is used instead of the counter 13 to enable sequentially the M groups of switches 35 in the matrix 11. The output of each register stage 13-1, 13-2....13-M is connected to a respective one of the group enable lines 19-1, 19-2,...l9-M. Only one stage of the register 13' contains a binary one; the corresponding group of switches 35 will be enabled. All other register 13 stages contain binary zeros. Each time a pulse is received via the line 28 the register 13 is shifted, moving the single one bit to the next stage and thereby enabling the next group of switches in the matrix 11.

For example, if register stage 13-M contains the single one bit, the associated group enable line 19-M will be at a positive voltage, thereby enabling the group of switches 155-1 through 35-N connected to the line 19-M. All other group enable lines 19 except for the line 19-M will be at ground potential. Upon receipt of the next shift pulse on the line 28, the register 13 will recirculate, moving the one bit to the state 13-1 and enabling the group of switches associated with the line 19-1.

The matrix output lines 12 normally are biased to ground potential via the resistors 37-1 through 37-N.'

However, if any of the switches 35 in the enabled group are closed, the corresponding output lines 12 will go high, i.e., will go to the positive voltage level supplied from the enabling stage in the register 13'. Thus in FIG. 2, the switch 35-2 is closed; when the line 19-M is enabled, the output line 12-2 will be high, and all other matrix output lines 12 will be low. Ofcourse, more than one switch (or no switch) in each enabled group may be closed.

The line select gates 15 include NAND gates 15-1 through 15-N each receiving as one input the respective matrix output line 12-1 through l2-N. The second input of each NAND gate 15 is connected to the re- 'spective stage 27-1 through 27-N of the N-stage recirculating shift register 27. This register 27 also contains a single binary one which is shifted by occurrence of a pulse from the AND gate 25. The register 27 stage containing the binary one enables the corresponding NAND gate 15; all other gates 15 are disabled.

With this arrangement, each of the matrix output lines 12 will be connected in sequence to the code matrix 17 as the single binary one bit is circulated through the shift register 27. For example, at the beginning of a line scanning cycle, the register stage 27-1 will enable the line select gate 15-1 to connect the line 12-1 to the code matrix input line 16-1. At successive shifts of the register 27, the gates 15-2 through 15-N successively will be enabled to connect the corresponding lines 12-2 through 12-N to the code matrix 17. When the one bit then recirculates back to the stage 27-1, the same pulse, supplied via the line 28, will cause the group select register 13 to shift, thereby enabling the next group of switches in the matrix 11.

The code matrix 17 comprises an array of diodes 38-1 through 38-Z interconnecting the input lines 16 and the output lines 18. The lines 18 are biased to a positive voltage +V via a set of resistors 39. The code matrix 17 provides on the lines 18-1 through 18-() a coded output if the line 12 gated to the code matrix is associated with a closed, enabled switch in the matrix 11. If the gated line 12 is associated with an open switch in the matrix 11, all of the lines 18-1 through 18-Q will remain high, the condition indicating that no code is present.

In the example wherein the group line 19-M is enabled, when the line 12-1 is gated to the code matrix 17, the line 161-! will remain high since the corresponding switch 35-1 is open. In this case. all of the lines 18 will remain high, no output code is produced. When the gate 15-2 is enabled. the line 16-2 will go to a low potential since the corresponding switch 35-2 is closed. Accordingly, the line 18-2 which is connected by the diode 38-5 to the line 16-2 will drop to low potential, and the lines 18-1 and 18-Q will remain high; this combination comprises the code designating the selected line 16-2. Together with the group identifying signal present on the line 19-M, the code on the lines 18 uniquely identifies the switch 35-2 as being closed.

In the embodiment of FIG. 2A, the no-code detector 23 comprises an AND gate 23' to which the lines 18 are connected. If all of the lines 18-1 through l8-Q are high, indicative of the no-code condition, the output from the AND gate 23' also will be high. This output, supplied via the OR gate 24, enables the AND gate 25 to provide a clock pulse to the shift register 27 This advances this shift register 27 and gates the next line 12 to the code matrix 17. If no code again is produced on the lines 18, another clock pulse is gated to the register 27. In this manner, line scanning continues at the clock 26 rate until a closed switch 35 is detected. When this occurs, a code will appear on the lines 18 and at least one of the lines 18-1 through 18-Q will be low. As a result, the output of the AND gate 23 will be low. Scanning will stop until an answerback or OK" signal is received via the line 30 from the utilization means 21, 22 or from the time delay 31.

In the embodiment shown, the groups of switches enabled by the lines 19-1 and 19-2 of the matrix 11 are associated with the first utilization means 20, the switches enabled by the lines 19-3 through 19-5 are utilized by the second means 21 and the switches enabled by the lines 19-6 through 19-M are used to control the third utilization means 22. The logic of FIG. 2B shows an illustrative gating arrangement for supplying the encoded signals from the system 10 to the respective utilization means 20, 21 and 22.

The group enable lines 19-1 and 19-2 are connected to an OR gate 40 to produce a gating signal on a line 41 when either of the first two groups of switches in the matrix 11 is being scanned. This gating signal enables a set of AND gates 42 which connect the code-carrying lines 18-1 through 18-Q and the group designating lines 19-1 and 19-2 to the first utilization means 20. Similarly, when any of the group enable lines 19-3 through 19-5 is selected, a set of output AND gates 43 is enabled by a signal provided on a line 44 by an OR gate 45 connected to the lines 19-3 through 19-5. The AND gates 43 supply to the second utilization means 21 the coded signals on the lines 18 and the group designating signals on the lines 19-3 through 19-5. A set of AND gates 46, enabled by a signal on a line 47 supplied by an OR gate 48, provide the encoded output to the third utilization means 22 when any of the group enable lines 19-6 through 19-M is selected.

When an encoded output is supplied to the first utilization means 20, the answerback or OK signal is provided by the time delay circuit 31. To this end, when either of the group enable lines 19-1 or 19-2 is selected, the resultant signal on the line 41 also enables an AND gate 50. Occurrence of a coded signal on the lines 18 results in an output from a NAND gate 51 connected to receive that signal; this output is provided to the delay circuit 31 via the enabled gate 50. At the end of the delay time. the circuit 31 provides an 01( signal via the line 30.

The inventive key coding system 10 may be employed with any type of utilization means, but is particularly useful with an electronic keyboard musical instrument of the type described in U.S. Pat. application Ser. No. 225,883 filed Feb. 14, 1972. to Deutsch entitled COMPUTOR ORGAN now US. Pat. No. 3,809,786. In that instrument. the fundamental frequency of each generated musical note is established by a frequency number selected from a set of such numbers stored in a memory. The timbre or tonal quality of the note is established by a set of stored harmonic coefficients which determine the relative amplitudes of the Fourier components constituting the generated musical waveshape. Several sets of such harmonic components may be stored separately and chosen for utilization by stop selection switches. Attack and decay is implemented digitally by programmatically scaling the amplitudes of the constituent Fourier components during successive note generation cycles.

When the key coding system 10 is used with such a computor organ, the first utilization means may comprise the attack/decay control components of the organ, the second utilization means 21 may comprise the stop selection circuitry and the third utilization means 22 may comprise the note generation circuitry. With this arrangement, the groups of switches enabled by the lines 19-6 through 19-M constitute the manual and pedal keyboard switches used for note selection. The encoded signals provided via the gates 46 to the note generation circuitry 20 are used to access from a memory 55 (FIG. 2B) the corresponding frequency numbers. To this end, the coded signals provided via the gates 46 may correspond directly to frequency number memory addresses for the selected notes. Similarly, attack/decay control switches and stop selection switches are included in the matrix 11, enabled respectively by the lines 19-1, 19-2 and 19-3 through 19-5. Using the inventive system, newly actuated or released switches rapidly are detected, and wiring between the keyboards and other musical instrument circuitry is simplified.

Intending to claim all novel, useful and unobvious features shown or described, the inventors make the following claims:

1. A switch scanning and encoding system in an electronic musical instrument, said instrument including a plurality of key-controlled switches arranged in a matrix of M columns and N rows, each column of switches being separately enableable, the switches in each row being connected to N corresponding row output lines, and musical tone generation circuitry responsive to said encoded signals, the improvement comprising:

encoding circuitry,

scanning means for sequentially gating each of said N output lines to said encoding circuitry, said encoding circuitry providing a coded signal identifying the gated line if the switch in the enabled matrix column connected to that gated line is closed and providing no coded signal if that switch is open,

first skip means for causing said scanning means to gate the next output line to said encoding circuitry if no coded signal is provided, and

second skip means, operative if a coded signal is provided from said encoding circuitry, for causing said scanning means to dwell for a period of time sufficient to permit utilization of said coded signal.

2.A switch scanning and encoding system according to claim 1 wherein said first skip means has timing circuitry for causing the scanning means to gate on the next output line in a time period substantially less than the dwell time of said second skip means.

3. An electronic keyboard musical instrument incorporating a switch scanning and encoding system. said instrument having keyboard actuated note selection switches and other switches controlling characteristics of the musical sounds generated by said musical instrument, said keyboard and other switches being arranged in a switch matrix of M columns and N rows. the switches in each row being connected to a respective one of N common output lines, and musical sound generating circuitry, said system comprising;

group enabling means for enabling each of said M columns of switches one column at a time, so that output signals are provided only on those output lines connected to actuated switches in the enabled column,

a code matrix having N inputs,

N line select gates each gating one of said output lines to a respective input of said code matrix. said code matrix providing a coded output only if the switch in the enabled column and connected to the line gated to said code matrix is actuated,

N-stage recirculating register means for sequentially enabling said line select gates, and

first shift means responsive to'the output of said code matrix for causing said register means to enable the next line select gate upon detection of a no-code condition from said code matrix, and second shift means, operative in response to detection of a coded output from said code matrix, for .causing said register means to enable the next line select gate after a period of time sufficient to permit utilization of said coded output, and

interconnection lines for supplying said coded output to said sound generating circuitry for utilization thereby. 2-.

4. An electronic musical instrument according to claim 3 wherein said generating circuitry includes a memory storing frequency numbers determinative of the fundamental frequency of the generated musical sound. the coded outputs resultant from actuation of said note selection switches corresponding to addresses of said frequency number memory. 

1. A switch scanning and encoding system in an electronic musical instrument, said instrument including a plurality of keycontrolled switches arranged in a matrix of M columns and N rows, each column of switches being separately enableable, the switches in each row being connected to N corresponding row output lines, and musical tone generation circuitry responsive to said encoded signals, the improvement comprising: encoding circuitry, scanning means for sequentially gating each of said N output lines to said encoding circuitry, said encoding circuitry providing a coded signal identifying the gated line if the switch in the enabled matrix column connected to that gated line is closed and providing no coded signal if that switch is open, first skip means for causing said scanning means to gate the next output line to said encoding circuitry if no coded signal is provided, and second skip means, operative if a coded signal is provided from said encoding circuitry, for causing said scanning means to dwell for a period of time sufficient to permit utilization of said coded signal.
 2. A switch scanning and encoding system according to claim 1 wherein said first skip means has timing circuitry for causing the scanning means to gate on the next output line in a time period substantially less than the dwell time of said second skip means.
 3. An electronic keyboard musical instrument incorporating a switch scanning and encoding system, said instrument having keyboard actuated note selection switches and other switches controlling characteristics of the musical sounds generated by said musical instrument, said keyboard and other switches being arranged in a switch matrix of M columns and N rows, the switches in each row being connected to a respective one of N common output lines, and musical sound generating circuitry, said system comprising; group enabling means for enabling each of said M columns of switches one column at a time, so that output signals are provided only on those output lines connected to actuated switches in the enabled column, a code matrix having N inputs, N line select gates each gating one of said output lines to a respective input of said code matrix, said code matrix providing a coded output only if the switch in the enabled column and connected to the line gated to said code matrix is actuated, N-stage recirculating register means for sequentially enabling said line select gates, and first shift means responsive to the output of said code matrix for causing said register means to enable the next line select gate upon detection of a no-code condition from said code matrix, and second shift means, operative in response to detection of a coded output from said code matrix, for causing said register means to eNable the next line select gate after a period of time sufficient to permit utilization of said coded output, and interconnection lines for supplying said coded output to said sound generating circuitry for utilization thereby.
 4. An electronic musical instrument according to claim 3 wherein said generating circuitry includes a memory storing frequency numbers determinative of the fundamental frequency of the generated musical sound, the coded outputs resultant from actuation of said note selection switches corresponding to addresses of said frequency number memory. 